﻿<UserControl x:Class="LFSRecord2.View.MediaView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:lfsmstruct="clr-namespace:LFSRecord2.View.MediaStructures"
             mc:Ignorable="d" Loaded="UserControl_Loaded"
             d:DesignWidth="200" d:DesignHeight="300"
             Height="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}, Path=ActualHeight}">
    <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
        <StackPanel Orientation="Vertical" Background="Transparent" MouseLeftButtonDown="MediaGrid_MouseLeftButtonDown">
            <ItemsControl ItemsSource="{Binding MediaObjects}" Focusable="False">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <lfsmstruct:MediaObjectView DataContext="{Binding}" />
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </StackPanel>
    </ScrollViewer>
</UserControl>
